package com.xs.comment.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xs.common.annotation.Excel;
import com.xs.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 订单_聊天对象 t_session
 * 
 * @author ruoyi
 * @date 2024-06-30
 */
public class TSession extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    /** 文本内容 */
    @Excel(name = "文本内容")
    private String text;

    /** 最后沟通时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后沟通时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastTime;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 1留言板 2 用户联系客服聊天信息 */
    @Excel(name = "1留言板 2 用户联系客服聊天信息")
    private Long type;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setText(String text) 
    {
        this.text = text;
    }

    public String getText() 
    {
        return text;
    }
    public void setLastTime(Date lastTime) 
    {
        this.lastTime = lastTime;
    }

    public Date getLastTime() 
    {
        return lastTime;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userName", getUserName())
            .append("text", getText())
            .append("lastTime", getLastTime())
            .append("userId", getUserId())
            .append("type", getType())
            .toString();
    }
}
